//
//  BNBaseViewModel.h
//  BNCodeGuide
//
//  Created by Mac on 2021/5/22.
//  Copyright © 2021 kevin007. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^RequestResponseHandler)(BOOL succeed, NSString *errorMsg);

@interface BNBaseViewModel : NSObject
/** datas*/
@property (nonatomic, strong) NSArray *listDatas;
/** pageNo*/
@property (nonatomic, assign) NSInteger pageNo;
/** if is last page*/
@property (nonatomic, assign)BOOL isLastPage;

//分页加载
- (void)requestDataWithisLoadMore:(BOOL)isLoadMore completion:(RequestResponseHandler)handler;

//不分页加载
- (void)requestDataWithCompletion:(RequestResponseHandler)handler;

@end

